<template>
  <div class="share_chain_index">
    <c-title :hide="false" :text="pageTitle"></c-title>
    <div class="title">统计报表</div>
    <div class="contenBox">
      <router-link class="line" :to="fun.getUrl('share_chain_dealDetail', { plugn: 'deal' })" tag="div">
        <div class="image">
          <img src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/share_chain%2Fshare_chain_cx.png" alt="" />
        </div>
        <div class="txt">交易明细</div>
      </router-link>
      <router-link class="line" :to="fun.getUrl('share_chain_dealDetail', { plugn: 'inquire' })" tag="div">
        <div class="image">
          <img src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/share_chain%2Fshare_chain_zwcx.png" alt="" />
        </div>
        <div class="txt">占位查询</div>
      </router-link>
      <router-link class="line" :to="fun.getUrl('share_chain_dealDetail', { plugn: 'store' })" tag="div">
        <div class="image">
          <img src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/share_chain%2Fshare_chain_store.png" alt="" />
        </div>
        <div class="txt">门店交易</div>
      </router-link>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      pageTitle:''
    };
  },
  activated() {
    let info_basic = JSON.parse(localStorage.getItem("yz_basic_info"));
    this.fun.setWXTitle(info_basic?.plugin_setting?.share_chain?.plugin_name);
    this.pageTitle = info_basic?.plugin_setting?.share_chain?.plugin_name
  }
};
</script>
<style lang="scss" scoped>
.share_chain_index {
  .title {
    font-size: 0.94rem;
    font-weight: bold;
    color: #333333;
    margin: 0.94rem 0;
    padding-left: 0.75rem;
    text-align: left;
  }
  .contenBox {
    margin: 0 0.75rem;
    background: #fff;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-around;
    padding: 1.1rem 0;
  }
  .line {
    display: flex;
    flex-direction: column;
    align-items: center;
    .image {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 0.63rem;
      margin-bottom: 0.6rem;
      img {
        width: 100%;
        height: 100%;
        border-radius: 0.63rem;
      }
    }
    .txt {
      font-size: 0.75rem;
    }
  }
}
</style>
